﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entidades;
using Logica;

namespace SITAX
{
    public partial class Pasajeros : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            PasajerosBLL c = new PasajerosBLL();
            grdpasajeros.DataSource = c.GetPasajeros();
            grdpasajeros.DataBind();
            //GridView1.DataSource = c.GetPasajeros();
            //GridView1.DataBind();
            //grd.DataSource = c.GetContactos();
            //grdContactos.DataBind()
        }

        protected void grdpasajeros_SelectedIndexChanged(object sender, EventArgs e)
        {
            //LbMsg.Text = grdpasajeros.SelectedValue.ToString();
            Session["Email"] = grdpasajeros.SelectedValue.ToString();
            Response.Redirect("~/Registrarse1.aspx");
        }

   

        //protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    LbMsg.Text = GridView1.SelectedValue.ToString();
        //    Response.Redirect("~/Registrarse1.aspx");

        //}


    }
}